package cz.proks.easyhelpdesk.gwt.place.base;

import java.util.List;

public abstract class RestrictedHelpdeskPlace extends AHelpdeskPlace{
    private Long helpdeskId;

    public RestrictedHelpdeskPlace(Long helpdeskId) {    
        this.helpdeskId = helpdeskId;
        addValue(helpdeskId);
    }
    
    public Long getHelpdeskId() {
        return helpdeskId;
    }

    @Override
    public void initFromList(List<String> initValues) {
        assertInitValues(initValues, 1);
        
        this.helpdeskId = Long.valueOf(initValues.get(0));
        
        setPlaceValues(initValues);        
    }        
}
